import request from '@/utils/request'

export function page(params) {
    return request({
        url: '/mall_product/admin/spu/page',
        method: 'get',
        params
    })
}

export function add_spu(data) {
    return request({
        url: '/mall_product/admin/spu',
        method: 'post',
        data
    })
}

export function spu_status_change(params) {
    return request({
        url: '/mall_product/admin/spu/status',
        method: 'put',
        params
    })
}

export function spu_info(id) {
    return request({
        url: `/mall_product/admin/spu/${id}`,
        method: 'get'
    })
}

export function spu_del(id) {
    return request({
        url: `/mall_product/admin/spu/${id}`,
        method: 'delete'
    })
}